/* 基础动画 */
.calendar-container {
  transition: all 0.3s ease;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 头部按钮动画 */
.header-button {
  transition: all 0.3s ease;
}

.header-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.header-button:active {
  transform: scale(0.95);
}

/* 选择器动画 */
.calendar-select {
  transition: all 0.3s ease;
}

.calendar-select:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 日历网格动画 */
.calendar-grid {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 日期单元格动画 */
.calendar-cell {
  position: relative;
  min-height: 80px;
  padding: 8px;
  background-color: white;
  border: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-cell:hover {
  background-color: #f8f9fa;
}

.calendar-cell:active {
  transform: scale(0.98);
}

/* 日期数字样式 */
.date-number {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 14px;
  font-weight: bold;
}

/* 状态标记基础样式 */
.status-mark {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  min-width: 60px;
  z-index: 1;
}

/* 迟到状态 */
.late .status-mark {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

/* 早退状态 */
.early-leave .status-mark {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  color: #faad14;
}

/* 已下班状态 */
.checked-in .status-mark {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

/* 上班中状态 */
.working .status-mark {
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #1890ff;
}

/* 未打卡状态 */
.absent .status-mark {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

/* 迟到且早退状态 */
.late-early-leave .status-mark {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

/* 其他月份日期 */
.other-month {
  opacity: 0.5;
}

/* 今天 */
.today {
  background-color: #e6f7ff;
}

/* 选中状态 */
.selected {
  background-color: #e6f7ff;
  border: 2px solid #1890ff;
}

/* 确保状态标记始终可见 */
.calendar-cell .status-mark {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 周/日标题样式 */
.weekday {
  background-color: #4299e1 !important;
  color: white !important;
  font-weight: bold !important;
  text-align: center !important;
  padding: 8px !important;
}

/* 日历网格样式 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e2e8f0;
  border: 1px solid #e2e8f0;
}

/* 单元格内容动画 */
.cell-content {
  transition: all 0.3s ease;
}

/* 今日日期动画 */
.today {
  font-weight: bold;
}

/* 视图切换动画 */
.view-container {
  transition: all 0.3s ease-out;
}

.slide-left .calendar-content {
  animation: slideInRight 0.3s ease;
}

.slide-right .calendar-content {
  animation: slideInLeft 0.3s ease;
}

/* 详情内容动画 */
.details-content {
  animation: fadeIn 0.3s ease;
}

/* 返回按钮动画 */
.back-button {
  transition: all 0.3s ease;
}

.back-button:hover {
  transform: translateX(-5px);
  color: #2b6cb0;
}

/* 涟漪效果 */
.ripple::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(66, 153, 225, 0.3);
  border-radius: 50%;
  animation: ripple 0.6s ease-out;
}

/* 动画关键帧 */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 179, 237, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(99, 179, 237, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 179, 237, 0);
  }
}

@keyframes ripple {
  from {
    transform: scale(0);
    opacity: 1;
  }
  to {
    transform: scale(2);
    opacity: 0;
  }
} 